using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmEsInquireDtls")]
    public class EsInquireDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "InquireDtlsId", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public int InquireDtlsId { get; set; }

		[ForeignKey("Inquire")]
		[DataMember, Display(Name = "InquireId", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> InquireId { get; set; }

		[ForeignKey("InquireSubject")]
		[DataMember, Display(Name = "InquireSubjectId", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> InquireSubjectId { get; set; }

		[ForeignKey("")]
		[DataMember, Display(Name = "Id", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> Id { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "Reason", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public string Reason { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.EsInquireDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual EsInquire Inquire { get; set; }

		public virtual RcInquireSubject InquireSubject { get; set; }
         
		public virtual HRM.JobSite JobSite { get; set; }

    }
}